package com.qf.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qf.mapper.DtsGoodsProductMapper;
import com.qf.pojo.DtsGoodsProduct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * projectName: wokepase1
 *
 * @author: 强力
 * time: 2021/9/13 17:15
 * description:
 */
@Service
public class ProductServiceImpl implements ProductService{
    @Autowired
    private DtsGoodsProductMapper productMapper;
    @Override
    public Integer productcount() {
        QueryWrapper<DtsGoodsProduct> queryWrapper =new QueryWrapper<>();
        queryWrapper.eq("deleted",0);
        Integer count = productMapper.selectCount(queryWrapper);
        return count;
    }


}
